//
//  StartPageViewController.m
//  JJHW_coreData
//
//  Created by lizhenqiang on 16/4/21.
//  Copyright © 2016年 HFKJ_LZQ. All rights reserved.
//

#import "StartPageViewController.h"

@interface StartPageViewController ()<HZViewForGuideDataSource>

@end

@implementation StartPageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    [self loadGuideView:self.view];
}

- (void)loadGuideView:(UIView *)view
{
    //    NSString *FirstUsedApp =[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    if (![[NSUserDefaults standardUserDefaults] boolForKey:kVersion])
    {
        HZUIViewForGuide *hzviewForGuide =[[HZUIViewForGuide alloc] initWithFrame:CGRectMake(0, 0, DeviceWidth, DeviceHeight)];
        hzviewForGuide.tag = 3001;
        hzviewForGuide.superflag = @"YINDAO";
        hzviewForGuide.numofpages = 3;
        hzviewForGuide.dataSource =self;
        [hzviewForGuide initSubviews:view];
    }
    
}
-(NSArray *)ViewForGuideArrayPics:(HZUIViewForGuide *)viewForGuide
{
    
    if (viewForGuide.tag == 3001) {
        
        return @[@"yindao1.png",@"yindao2.png",@"yindao3.png"];
    }
    return nil;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
